#include "states.h"

int estado = APP_INITING;
u32 k1;

/* Variables */
struct hp localports[8];
struct ds localhubstatus;
struct passingdata *pdata;
struct passingdata res;
int dumpoffset = 0;


/* Funciones */
void resetdata(struct passingdata *res) { 
	memset(res,0,sizeof(struct passingdata));
	res->hubstatus = &localhubstatus;
}

/* log */
#ifndef LOADER
void loginit() { k1s; int fp = sceIoOpen("ms0:/psp3jb_log.txt", PSP_O_WRONLY | PSP_O_CREAT | PSP_O_TRUNC , 0777 ); sceIoClose(fp); k1r; }
void logecho(char *msg) { k1s; int fp = sceIoOpen("ms0:/psp3jb_log.txt", PSP_O_WRONLY | PSP_O_APPEND , 0777 ); sceIoWrite(fp, msg, strlen(msg)); sceIoClose(fp); k1r; }
#endif